﻿<Window x:Class="CaliburnWpf.Views.CreateAccountView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add Account Wizard" Height="300" Width="300" >
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="Margin" Value="8,2"/>
            <Setter Property="Width" Value="50"/>
        </Style>
    </Window.Resources>

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <Image Source="/Resources/addacctwiz.png" Width="100" />

        <TabControl Grid.Column="1" SelectedIndex="{Binding Path=Step,Mode=OneWay}" Style="{DynamicResource TabControlHideHeaders}" >
            <TabItem>
                <TextBlock TextWrapping="Wrap" VerticalAlignment="Center">
                    MoneyManager models all transactions as belonging to accounts. 
The next pages will help you create a new account.
Te help you get started, begin by making a list of all financial institutions where you hold an account.
                </TextBlock>
            </TabItem>
            <TabItem>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    <TextBlock>
                        Name of the Account
                    </TextBlock>
                    <TextBox Grid.Row="1" Text="{Binding AccountName}"/>
                    <TextBlock Grid.Row="2"></TextBlock>
                </Grid>
            </TabItem>
            <TabItem>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="*"/>

                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="Type of accounts"/>
                    <ComboBox Grid.Row="1" ItemsSource="{Binding PossibleTypes}"/>
                    <TextBlock Grid.Row="2" TextWrapping="Wrap" VerticalAlignment="Stretch">
                        Select type of the account you want to create:
                        
                        General bank accounts cover a wide variety of account types like checking,savings and credit ard type accounts.
                        
                        Investment accounts are specialized accounts that only have stock/mutual fund associated with them
                    </TextBlock>
                </Grid>
            </TabItem>
        </TabControl>

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="1" Grid.ColumnSpan="2">
            <Button Content="Back" IsEnabled="{Binding CanBack}" x:Name="MoveBack" />
            <Button Content="Finish" Visibility="{Binding CanFinish}" x:Name="Finish" />
            <Button Content="Next" Visibility="{Binding CanNext}"  x:Name="MoveNext" />
            <Button Content="Cancel" Visibility="{Binding CanCancel}" x:Name="Cancel" />
        </StackPanel>

    </Grid>
</Window>
